//输入一个一元二次方程，输出结果ax2+bx+c=0(a≠0)

#include <stdio.h>
#include <math.h>
int main(){
	float a = 0;
	float b = 0;
	float c = 0;
	printf("输入三个不为0的数：");
	scanf("%f%f%f",&a,&b,&c);

	b*b-4*a*c==0?
	printf("%.2f\n",-b / 2 * a):
	printf("%.2f %.2f\n", (-b - sqrt(b * b - 4 * a * c)) / 2 * a,(-b + sqrt(b * b - 4 * a * c)) / 2 * a);

	return 0;
}
